'''
Created on 2010/07/06

@author: yukiyonezawa
'''

class AddObject(object):
    
    #DEFINED COMPACTION_TYPE
    APPLICATION_DEFINED = "0"
    COMPACT = "1"
    UTF8_DATA = "2"
    PACKE_OBJECT = "3"    
    
    __slots__ = ["OBJECT_IDENTIFIER", "AVOID_DUPLICATE", "OBJECT", "COMPACT_PARAMETER", "OBJECT_LOCK"]
    
    def __init__(self, object_identifier, avoid_duplicate, object_value, compact_parameter, object_lock ):
        self.OBJECT_IDENTIFIER = object_identifier
        self.AVOID_DUPLICATE = avoid_duplicate
        self.OBJECT = object_value
        self.COMPACT_PARAMETER = compact_parameter
        self.OBJECT_LOCK = object_lock
    
    def show(self):
        print "OBJECT IDENTIFIER", self.OBJECT_IDENTIFIER
        print "OBJECT", self.OBJECT
        print "DUPLICATE", self.AVOID_DUPLICATE
        print "COMPACTION", self.COMPACT_PARAMETER
        print "LOCK", self.OBJECT_LOCK